package com.cloud.check.common.result;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class QkTreeNode {
	private String id;
	private String label;
	private String icon;
	private String seniorId;
	private String expandedIcon;
	private String collapsedIcon;
	private String styleClass;
	private String type;
	private boolean expanded;
	private boolean selectable;
	private boolean leaf;
	private boolean rootFlag;
	private int level;
	private Map<String, Object> data = new HashMap<String, Object>();
	private List<QkTreeNode> children = new ArrayList<QkTreeNode>();

	public QkTreeNode() {

	}

	public QkTreeNode(String id, String label) {
		super();
		this.id = id;
		this.label = label;
	}

	public QkTreeNode(long id, String label) {
		super();
		this.id = id + "";
		this.label = label;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getExpandedIcon() {
		return expandedIcon;
	}

	public void setExpandedIcon(String expandedIcon) {
		this.expandedIcon = expandedIcon;
	}

	public String getCollapsedIcon() {
		return collapsedIcon;
	}

	public void setCollapsedIcon(String collapsedIcon) {
		this.collapsedIcon = collapsedIcon;
	}

	public String getStyleClass() {
		return styleClass;
	}

	public void setStyleClass(String styleClass) {
		this.styleClass = styleClass;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public boolean isExpanded() {
		return expanded;
	}

	public void setExpanded(boolean expanded) {
		this.expanded = expanded;
	}

	public boolean isSelectable() {
		return selectable;
	}

	public void setSelectable(boolean selectable) {
		this.selectable = selectable;
	}

	public Map<String, Object> getData() {
		return data;
	}

	public void setData(Map<String, Object> data) {
		this.data = data;
	}

	public List<QkTreeNode> getChildren() {
		return children;
	}

	public void setChildren(List<QkTreeNode> children) {
		this.children = children;
	}

	public boolean isLeaf() {
		return leaf;
	}

	public void setLeaf(boolean leaf) {
		this.leaf = leaf;
	}

	public String getSeniorId() {
		return seniorId;
	}

	public void setSeniorId(String seniorId) {
		this.seniorId = seniorId;
	}

	public boolean isRootFlag() {
		return rootFlag;
	}

	public void setRootFlag(boolean rootFlag) {
		this.rootFlag = rootFlag;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

}
